package com.fs.common.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fs.common.annotation.ColumnDesc;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author ACE
 * @desc 积分实体类
 * @creationTime 2019-02-28 14:32
 * @projectName weixinframe
 * @packageName com.fs.pojo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_integral")
@EqualsAndHashCode(callSuper=false)
public class Integral extends IdEntity{
    @ColumnDesc(name = "用户ID")
    private String userId;

    @TableField(exist = false)
    private String nickName;

    @ColumnDesc(name = "积分")
    private Integer integral;

    /**
     * 1、推荐注册
     * 2、会员续费
     * 3、购买次数
     * 4、其他
     */
    @ColumnDesc(name = "类型")
    private Integer type;

    @ColumnDesc(name = "备注")
    private String remark;
}
